package com.huanletao.spring.aop.aop01;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        UserServiceImpl bean =  applicationContext.getBean(UserServiceImpl.class);
        bean.insert();

        bean.deleteUser();


    }
}
